package com.tony.mindwarning.service.impl;

import com.tony.mindwarning.mpper.LogMapper;
import com.tony.mindwarning.pojo.Log;
import com.tony.mindwarning.service.LogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: LogServiceImpl
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/07/22:10
 * @Description:
 */
@Service
public class LogServiceImpl implements LogService {

    @Resource
    LogMapper logMapper;

    @Override
    public int addLog(Log log) {
        return logMapper.addLog(log);
    }

    @Override
    public List<Log> getLogs(String uname) {
        return logMapper.getLogs(uname);
    }
}
